'use strict';
import React, {
    Component
} from 'react'
import {
    Link,
} from 'react-router'


// import '../Plugins/uedtior/ueditor.config.js'
// import '../Plugins/uedtior/ueditor.all.js'
// import '../Plugins/uedtior/themes/default/css/ueditor.min.css'

export default class editor extends Component {

    componentDidMount() {
        UE.getEditor('editor')
        //API
        //http://ueditor.baidu.com/website/umeditor.html
        //http://192.168.2.31:1000/src/Plugins/uedtior/
    }

    componentWillUnmount() {
        UE.getEditor('editor').destroy();
    }

    render() {
        return (
            <div className='test'>
                <h1>完整demo</h1>
                <script id="editor" type="text/plain" style={{width:'1024px',height:'500px'}}></script>
            </div>
        )
    }
}
